package com.sharding4.mybatisplus.seata.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author lenovo
 */
@Data
public class Goods {
    /**
     * 商品id
     */
    @TableId(value = "goodsId")
    private Long goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品标题
     */
    private String subject;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 库存
     */
    private int stock;

    @Override
    public String toString() {
        return " Goods:goodsId=" + goodsId + " goodsName=" + goodsName + " subject=" + subject + " price=" + price + " stock=" + stock;
    }
}
